/* Copyright (C) 2008  Romolo Camplani, Marco Fortunato, Marco Marelli, Guido Rota, Fabio A. Schreiber et al.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
/*
 * WorldModel.java
 *
 * Created on October 25, 2007, 1:39 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.dei.perla.utils.emulator.models.world;

import java.util.*;

import org.dei.perla.utils.emulator.models.meta.Component;
/**
 *
 * @author Adnan
 */

class PositionTemparature
{
    double temp;
    Position pos;
    
    public PositionTemparature(Position p,double t)
    {
        pos = p;
        temp = t;
    }
    public PositionTemparature(){}
    
}
public class WorldModel implements Component,SensorWorld {
    
    ArrayList<PositionTemparature> pt = new ArrayList<PositionTemparature>();
    /** Creates a new instance of WorldModel */
    public WorldModel() {
        //setting an initial temparature
        for(int i=0; i <10 ; i++)
            for (int j=0 ; j<10 ; j++)
                pt.add(new PositionTemparature(new Position(i,j),i+j));
        
        
    }
    
    public void setTemp(double t)
    {}
    
    public double getTemp()
    {
        return 5.0;
    }
}
